//
//  NSDate+MAAdv.m
//  MateAdv
//
//  Created by 茶 on 2023/9/18.
//

#import "NSDate+MAAdv.h"

@implementation NSDate (MAAdv)

+ (NSDate *)ma_dateWithTimestamp:(NSNumber *)timestamp {
    NSDate *confromTimesp = [NSDate dateWithTimeIntervalSince1970:[timestamp doubleValue]];
    return confromTimesp;
    
}
- (NSString *)ma_stringWithFormat:(NSString *)format {
    NSDateFormatter *formatter = [NSDateFormatter new];
    [formatter setDateFormat:format];
    [formatter setLocale:[NSLocale currentLocale]];
    return [formatter stringFromDate:self];
}

@end
